package com.xwh.shop.common.exceptions;
import com.xwh.shop.common.exceptions.enums.Resp;
import lombok.Data;

@Data
public class BusinessException extends RuntimeException{
    private Resp resp;

    public BusinessException(Resp resp) {
        super(resp.getMessage());
        this.resp = resp;
    }
}
